#include "FITKCDDataInlet.h"

using namespace Interface;


void FITKCDDataInlet::setInlet_Shape(int nVal)
{
	setValue("Inlet_Shape", nVal);
}
void FITKCDDataInlet::setPosition(double* dVal)
{
	setValue("Position_0", dVal[0]);
	setValue("Position_1", dVal[1]);
	setValue("Position_2", dVal[2]);
}
void FITKCDDataInlet::setFlow_Rate(double* dVal)
{
	setValue("Flow_Rate_0", dVal[0]);
	setValue("Flow_Rate_1", dVal[1]);
	setValue("Flow_Rate_2", dVal[2]);
}
void FITKCDDataInlet::setInlet_Area(double dVal)
{
	setValue("Inlet_Area", dVal);
}


int FITKCDDataInlet::getInlet_Shape()
{
	return getValue("Inlet_Type").toInt();
}
double* FITKCDDataInlet::getPosition()
{
	double* Position = new double[3];
	Position[0] = getValue("Position_0").toDouble();
	Position[1] = getValue("Position_1").toDouble();
	Position[2] = getValue("Position_2").toDouble();
	return Position;
}
double* FITKCDDataInlet::getFlow_Rate()
{
	double* Flow_Rate = new double[3];
	Flow_Rate[0] = getValue("Flow_Rate_0").toDouble();
	Flow_Rate[1] = getValue("Flow_Rate_1").toDouble();
	Flow_Rate[2] = getValue("Flow_Rate_2").toDouble();
	return Flow_Rate;
}
double FITKCDDataInlet::getInlet_Area()
{
	return getValue("Inlet_Area").toDouble();
}
